package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author hua
 * @version 1.0
 * @title Product
 * @description
 * @create 2024/3/17 17:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Product {
    @TableId
    private Integer pid;
    private String pname;
    private String marketPrice;
    private Double shopPrice;
    private String pimage;
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    private Date pdate;
    private Integer isHot;
    private String pdesc;
    private Integer pflag;
    private Integer cid;
}
